package routers

import (
	"mars-backend/controllers"

	"github.com/astaxie/beego"
)

func AdminRouter() {
	// //对应前端admin用户分析页面
	// beego.Router("/admin/user/dashboard", &controllers.AdminController{}, "get:Dashboard")
	// //对应前端admin用户列表页面
	// beego.Router("/admin/user/list", &controllers.AdminController{}, "get:ListUsers")
	// //对应前端admin用户添加页面
	// beego.Router("/admin/user/adduserpage", &controllers.AdminController{}, "get:AddUserPage")
	// //对应前端admin用户更新页面
	// beego.Router("/admin/user/updateuserpage/:id", &controllers.AdminController{}, "get:UpdateUserPage")

	// ?password=pwd, 重置密码
	beego.Router("/admin/pwdreset/:id", &controllers.AdminController{}, "post:PasswordReset")

	// 仅作测试使用， 批量添加用户
	// TEST: for test, add 'size' user into monogo, useage /test/adduser?size=1000000
	beego.Router("/test/adduser", &controllers.AdminController{}, "get:AddTestUsers")
}
